﻿<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:Avanade="urn:Avanade" xmlns:rs='urn:schemas-microsoft-com:rowset' xmlns:z='#RowsetSchema'>
  <xsl:template match="/">
    <input type="hidden" name="selectedButton" value="" />
    <!-- Detail Flash Info -->
	<table width="100%" border="0" cellspacing="0" cellpadding="0" summary="Webpart Flash Info">
		<xsl:if test="normalize-space(//EditFormURL) != ''">
		  <tr>
			<td class="ms-addnew" style="background-color:#ffffff;width:100%;vertical-align:top;height:0%;padding:10px;font-size:10px;">
			  <![CDATA[<img alt="" src="_layouts/images/rect.gif" />&nbsp;<a class="ms-addnew" href="]]><xsl:value-of select="//EditFormURL" /><![CDATA[">Modifier cette annonce flash info</a>]]>
			</td>
		  </tr>
		</xsl:if>
	  <tr>
		<td style="padding:10px">
		  <xsl:for-each select="xml/rs:data/z:row">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
			  <tr>
				<td>
				  <xsl:if test="current()/@ows_Surtitre">
					<br />
				  </xsl:if>
				  <span style="text-transform:uppercase;color:#4f4f4f;font-weight:bold">
					<xsl:value-of select="current()/@ows_Surtitre" />
				  </span>
				  <xsl:if test="current()/@ows_Surtitre">
					<br />
				  </xsl:if>
				  <xsl:if test="current()/@ows_Title">
					  <span style="font-size:11px;font-weight:bold;color:#f21e8c">
						<xsl:value-of select="current()/@ows_Title" />
					  </span>
				  </xsl:if>
				  <xsl:if test="current()/@ows_Chapeau">
					<br/>
					<br/>
					<div style="font-family:Arial;font-size:10pt;color:#4f4f4f">
					  <xsl:value-of select="current()/@ows_Chapeau" />
					</div>
				  </xsl:if>
				  <xsl:if test="current()/@ows_Body">
					<br/>
					<div style="font-family:Arial;font-size:10pt;color:#4f4f4f">
					  <xsl:value-of select="current()/@ows_Body" />
					</div>
				  </xsl:if>
				  <xsl:if test="normalize-space(translate(current()/@ows_Photo, ',', '')) != ''">
					<br/>
					<div style="float:left;padding-right:10px">
					  <img style="border: solid 1px #fce4ee;">
						<xsl:attribute name="src">
						  <xsl:value-of select="Avanade:FormatLink(current()/@ows_Photo)" />
						</xsl:attribute>
					  </img>
					</div>
				  </xsl:if>
				</td>
			  </tr>
			</table>
		  </xsl:for-each>
		</td>
	  </tr>
	  <xsl:if test="normalize-space(//NewFormURL) != ''">
		<tr>
		  <td class="ms-addnew">
			<![CDATA[<img alt="" src="_layouts/images/rect.gif" />&nbsp;<a class="ms-addnew" href="]]><xsl:value-of select="//NewFormURL" /><![CDATA[">Ajouter une nouvelle annonce</a>]]>
		  </td>
		</tr>
	  </xsl:if>
	</table>
  </xsl:template>
</xsl:stylesheet>